/*
 * @Description:
 * @Author: Rfan
 * @Date: 2021-10-29 22:59:41
 * @LastEditTime: 2022-01-08 10:32:03
 */

import { observable } from 'mobx';

// 观察者
const metadataState = observable({
  fieldTypeList: [
    { id: 0, name: '字符型' },
    { id: 1, name: '整型' },
    { id: 2, name: '小数型' },
    { id: 3, name: '日期型' },
    { id: 4, name: '时间型' },
    { id: 5, name: '大对象' }
  ],
  fieldKindList: [
    { id: 0, name: '系统字段' },
    { id: 1, name: '业务字段' },
    { id: 2, name: '自定义' }
  ]
});

// // 方法
// metadataState.setUserName = action((name) => {
//   metadataState.userName = name;
// });

export default metadataState;
